package view;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ClientViewPanel extends javax.swing.JPanel {

	private static final long serialVersionUID = 1L;
	
	private JPanel jPanel;
	private JPanel jPanel3;
	private JScrollPane jScrollPane1;
	private JTable jTable;
	private JPanel jPanel2;
	private JButton jButtonSeeCar;
	
	public ClientViewPanel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setPreferredSize(new java.awt.Dimension(600, 400));
			GridBagLayout thisLayout = new GridBagLayout();
			this.setSize(600, 400);
			thisLayout.rowWeights = new double[] {0.0, 0.0, 0.1};
			thisLayout.rowHeights = new int[] {353, 6, 7};
			thisLayout.columnWeights = new double[] {0.1};
			thisLayout.columnWidths = new int[] {7};
			this.setLayout(thisLayout);
			{
				jPanel = new JPanel();
				GridBagLayout jPanelLayout = new GridBagLayout();
				this.add(jPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				jPanelLayout.rowWeights = new double[] {0.1};
				jPanelLayout.rowHeights = new int[] {7};
				jPanelLayout.columnWeights = new double[] {0.1};
				jPanelLayout.columnWidths = new int[] {7};
				jPanel.setLayout(jPanelLayout);
				{
					jPanel3 = new JPanel();
					GridLayout jPanel3Layout = new GridLayout(1, 1);
					jPanel3Layout.setHgap(5);
					jPanel3Layout.setVgap(5);
					jPanel3Layout.setColumns(1);
					jPanel3.setLayout(jPanel3Layout);
					jPanel.add(jPanel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					{
						jScrollPane1 = new JScrollPane();
						jPanel3.add(jScrollPane1);
						{
							TableModel jTableModel = 
								new DefaultTableModel(new String[] { "Placa", "Motorista", "Data", "Local", "Multa", "Ipva", "Roubado" }, 0);
							jTable = new JTable();
							jTable.setRowSelectionAllowed(false);
							jTable.setColumnSelectionAllowed(false);
							//jTable.setEnabled(false);
							jScrollPane1.setViewportView(jTable);
							jTable.setModel(jTableModel);
						}
					}
				}
			}			
			{
				jPanel2 = new JPanel();
				this.add(jPanel2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					jButtonSeeCar = new JButton();
					jPanel2.add(jButtonSeeCar);
					jButtonSeeCar.setText("Ver Carro");
				}
			}			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JTable getjTable() {
		return jTable;
	}

	public JButton getjButtonSeeCar() {
		return jButtonSeeCar;
	}

}
